#include "kiosk.h"
#include "ui_kiosk.h"
#include <QDebug>
#include <QtSql/QSqlTableModel>


kiosk::kiosk(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog)
{
    ui->setupUi(this);
    ui->ballotBox->setDisabled(true);

    //tcpSocket = new QTcpSocket(this);


    //tcpSocket->open(QIODevice::ReadWrite);

    connect(ui->loginButton, SIGNAL(clicked()), this, SLOT(loginClicked()));
    //connect(tcpSocket, SIGNAL(readyRead()), this, SLOT(readMessage()));
    connect(ui->submitButton, SIGNAL(clicked()), this, SLOT(submitClicked()));
    //QSqlTableModel *

}

void kiosk::loginClicked(){

 qDebug() << "login clicked";

}

void kiosk::readMessage(){
    qDebug() << " message receieved";
}

void kiosk::submitClicked(){
  qDebug() << "Submit clicked";
}

kiosk::~kiosk()
{
    delete ui;
}
